package com.linkoog.devtools.intellij.editor;

import com.intellij.json.JsonLanguage;
import com.intellij.openapi.project.Project;
import com.linkoog.devtools.utils.StringUtils;
import org.jetbrains.annotations.NotNull;

public class JSONEditerPanel extends EditorPanel {


    public JSONEditerPanel(@NotNull Project project){
        this(project, "{\n}");
    }

    public JSONEditerPanel(@NotNull Project project, String text) {
        super(project, JsonLanguage.INSTANCE, StringUtils.isBlank(text)? "{\n}": text);
    }

}
